<?php 
include TMPL_PATH.'public/header.phtml';
?>
<div class="subnav">
    <div class="content-menu ib-a blue line-x">
        <a href='<?php echo U('comment/guestbook_list');?>'><em>留言列表</em></a><span>|</span>
        <a href='javascript:;' class="on" ><em>留言回复</em></a></div>
</div>
<div class="pad_10">
<div class="common-form">
<form action="__SELF__" method="post" id="myform">
<table width="100%" class="table_form contentWrap">
<tr>
<td width="80">留言类型：</td> 
<td><?php echo CommentModel::$messageType[$guestbook['message_type']];?></td>
</tr>
<tr>
<td width="80">留言人：</td> 
<td><?php echo $guestbook['username'];?></td>
</tr>
<tr>
<td>留言邮箱</td>
<td><?php echo $guestbook['email'];?></td>
</tr>
<tr>
<tr>
<td>留言标题</td>
<td><?php echo $guestbook['title'];?></td>
</tr>
<tr>
<td>留言内容</td>
<td><?php echo $guestbook['content'];?></td>
</tr>
<tr>
<td>留言人IP</td>
<td><?php echo $guestbook['ip'];?></td>
</tr>
<tr>
<td>留言时间</td>
<td><?php echo date('Y-m-d H:i:s', $guestbook['start_time']);?></td>
</tr>
<?php if($guestbook['reply_time']){?>
<tr>
<td>回复时间</td>
<td><?php echo date('Y-m-d H:i:s', $guestbook['reply_time']);?></td>
</tr>
<?php }?>
<tr>
<td>留言回复：</td>
<td><textarea name="reply" cols="50" rows="5" style="width: 595px; height: 100px;"><?php echo $guestbook['reply']?></textarea></td>
</tr>
</table>

    <div class="bk15"></div>
    <input name="dosubmit" type="submit" value="提交" class="button">
</form>
</div>
</div>
</body>
</html>